import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss'],
})
export class AppComponent {
  title = 'angular-demo';
  newsList: any[] = ['new 1', 'new 2', 'new 3'];
  switchNumber: number = 1;
  newsClick() {
    console.log('click parent emit');
  }
}
